package com.nwpu.coursesupport.mapper;

import com.nwpu.coursesupport.criteria.BatchTaskAssignmentSearchCriteria;
import com.nwpu.coursesupport.entity.TaskAssignment;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TaskAssignmentMapper extends BaseMapper<TaskAssignment>{

	public List<Integer> findByIds(BatchTaskAssignmentSearchCriteria sc);
	public boolean isVisible(TaskAssignment assign);
    public boolean isAnwserVisible(TaskAssignment assign);
    public boolean updateAssignStatus(TaskAssignment assign);
    public int batchSave(List<TaskAssignment> assigns);

    @Select("select * from task_assignment")
    List<TaskAssignment> findAll();
}
